<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="box">
        <p>sadfasdfasdfasdfasdfasdf</p>
        <p>sadfasdfasdfasdfasdfasdf</p>
        <p>sadfasdfasdfasdfasdfasdf</p>
        <p>sadfasdfasdfasdfasdfasdf</p>
        <p>sadfasdfasdfasdfasdfasdf</p>
    </div>

    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script>
        // 2秒后隐藏div 
        setTimeout(function() {
            $('.box').hide();
        }, 2000);

        // 1秒后显示div
        setTimeout(function() {
            $('.box').show();
        }, 3000)
    </script>
</body>

</html>